package com.bonc.rms.dao.impl;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Repository;

import com.bonc.rms.dao.UserDao;
import com.bonc.rms.mapper.ManagerMapper;
import com.bonc.rms.mapper.UserMapper;
@Repository(value = "UserDaoImpl")
public class UserDaoImpl implements UserDao{
    @Autowired
    UserMapper userMapper;
    
    @Autowired
    ManagerMapper managerMapper;
    
	@Override
	public Integer getUserIdByAccount(String userName) {
	    return userMapper.getUserIdByAccount(userName);
	}

	   @Override
	    public String getPasswordByAccount(String userName) {
	        return userMapper.getPasswordByAccount(userName);
	    }

	    @Override
	    public String getUserNameByAccount(String userName) {
	        return userMapper.getUserNameByAccount(userName);
	    }

		@Override
		public Integer getManagerIdByAccount(String userName) {
			return managerMapper.getManagerIdByAccount(userName);
		}

		@Override
		public String getManagerPwdByAccount(String userName) {
			return managerMapper.getManagerPwdByAccount(userName);
		}

		@Override
		public String getManagerNameByAccount(String userName) {
			return managerMapper.getManagerNameByAccount(userName);
		}

}
